package net.myjung.account;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;

public class AccFactory implements BeanFactoryAware {
	private static BeanFactory bf = null;
	private static IAccManager accManager;
	public static IAccManager getManager() {
		if (accManager == null)
			accManager = (IAccManager) bf.getBean("accManager");
		return accManager;
	}
	public void setBeanFactory(BeanFactory value) throws BeansException {
		bf = value;
	}
}